package com.ruoyi.thoroughfare.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 卡片管理业务对象
 *
 * @author Zach
 * @date 2023-11-14
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppUserCardBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 卡号
     */
    @NotBlank(message = "卡号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cardNo;

    /**
     * 卡片类型
     */
    @NotNull(message = "卡片类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cardType;

    /**
     * 卡片所属银行   字典表加载
     */
    @NotNull(message = "卡片所属银行   字典表加载不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cardBank;

    /**
     * 卡片到期时间
     */
    @NotNull(message = "卡片到期时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date cardDate;

    /**
     * 卡片背签
     */
    @NotBlank(message = "卡片背签不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cardEndorse;


}
